<?php
require_once PATH_SITE.'cn/royan/php/utils/Logger.util.php';
require_once PATH_SITE.'cn/royan/php/parses/MacroParse.class.php';
require_once PATH_SITE.'cn/royan/php/parses/LogActsParse.parse.php';
require_once PATH_SITE.'cn/royan/php/parses/MapActsParse.parse.php';
require_once PATH_SITE.'cn/royan/php/parses/AreaActsParse.parse.php';
require_once PATH_SITE.'cn/royan/php/parses/RoomActsParse.parse.php';
require_once PATH_SITE.'cn/royan/php/parses/TaskActsParse.parse.php';
require_once PATH_SITE.'cn/royan/php/parses/TeamActsParse.parse.php';
require_once PATH_SITE.'cn/royan/php/parses/TradeActsParse.parse.php';
require_once PATH_SITE.'cn/royan/php/parses/GroupActsParse.parse.php';
require_once PATH_SITE.'cn/royan/php/parses/MessageActsParse.parse.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ConnectParse
 *
 * @author yanr
 */
class ConnectParse extends MacroParse
{
    //put your code here
    public function __construct() {
        parent::__construct();
        
        Logger::trace( "Start Regist Parse/------------------------" );
        $this->addSubParse( "LogActsParse" );
        $this->addSubParse( "MapActsParse" );
        $this->addSubParse( "RoomActsParse" );
        $this->addSubParse( "TaskActsParse" );
        $this->addSubParse( "TeamActsParse" );
        $this->addSubParse( "TradeActsParse" );
        $this->addSubParse( "MessageActsParse" );
        Logger::trace( "End Regist Parse/------------------------" );
    }
    
    static $instance;
    static public function getInstance()
    {
        IF( is_null( self::$instance ) ) self::$instance = new ConnectParse;
        RETURN self::$instance;
    }
}

?>
